#Set-PSReadLineOption -Colors @{
  #Command            = 'Magenta'
  #Number             = 'Green'
  #Member             = 'Green'
  #Operator           = 'Yellow'
  #Type               = 'Green'
  #Variable           = 'Yellow'
  #Parameter          = 'Yellow'
  #ContinuationPrompt = 'Green'
  #Default            = 'Green'
#}
#
function self {
    cd D:\k-s\private\hugo\

}
function sdk {
	cd D:\k-s\private\sdk\
}

function arash{
	cd D:\k-s\private\arashrun.github.io
}

function config {
    vim $profile.CurrentUserAllHosts
}

function grep {
    param($path, $str)
    Get-ChildItem -Path "$path" -Recurse | select-string -Pattern "$str"
#    select-string "$args" -Path .\*

}

function ff {
    Get-ChildItem -Path . -Recurse -Name "$args"

}

function ll {
    Get-ChildItem | % {$_.FullName}
}

function touch {
	new-item $args
}

function cat {
	Get-Content $args
}

function cm {
	cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 $args
}

# git 
function gs {
  git status
}

function gd {
  git diff $args
}
function gb{
  git branch $args
}

# etc
function qk {
	wt -w _quake -p "vs2019"
}
function hugos {
	hugo server -D --bind "192.168.0.107" --port 80 -b http://192.168.0.107/
}

Import-Module posh-git
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/material.omp.json"| Invoke-Expression

function rm([string]$path, [switch]$f, [switch]$r) {
        if ($f -and $r) {
                        Remove-Item -LiteralPath $path -Force -Recurse -ErrorAction Stop

        } elseif ($f) {
                        Remove-Item -LiteralPath $path -Force -ErrorAction Stop

        } elseif ($r) {
                        Remove-Item -LiteralPath $path -Recurse -ErrorAction Stop

        } else {
                        Remove-Item -LiteralPath $path -ErrorAction Stop

        }

}
